package com.bwbear.db.splitdb.utils;

/**
 * @author 张照威
 * @date 2020/8/26
 * @mail 865533614@qq.com
 * @describe
 */
public class PassWordUtils {

    public static String decrypt(String in){
        char[] chars = in.toCharArray();
        for (int k=0;k<chars.length;k++) {
            chars[k] =(char)(chars[k] / 2);
        }
        String out = new String(chars);
        return out;
    }

    public static String encryption(String in){
        char[] chars = in.toCharArray();
        for (int k=0;k<chars.length;k++) {
            chars[k] =(char)(chars[k] * 2);
        }
        String out = new String(chars);
        return out;
    }

}
